import uviewPlus from 'uview-plus'
import { createSSRApp } from 'vue'
import App from './App.vue';
import store from '@/store'
import tab from '@/utils/tab'
import modal from '@/utils/modal'
import './permission'


// export function createApp() {
//     const app = createSSRApp(App);
//     return { app };
// }
export function createApp() {
    const app = createSSRApp(App)
    app.config.globalProperties.$version = app.version;
    app.config.globalProperties.$tab = tab;
    app.config.globalProperties.$modal = modal;
    app.use(store);
    app.use(uviewPlus)
    return {
      app
    }
  }
